<script setup>
import { onMounted, onUnmounted, ref } from "vue";
import router from "@/router/index";
import { _$, $ } from "./edit";

onMounted(() => {
  if (router.currentRoute.value.query.id) {
    _$.requestParam.id = router.currentRoute.value.query?.id;
    $.loadEdit();
  }
});

onUnmounted(() => {
  $.clean();
});
</script>

<template></template>

<style scoped></style>
